package com.jrx.anytxn.feign.gateway.request;

import com.jrx.anytxn.common.uitl.CollectorsUtils;
import com.jrx.anytxn.feign.gateway.bean.BaseApiRequest;
import com.jrx.anytxn.feign.gateway.bean.TransDetl;
import org.apache.commons.collections.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: anytxn-cf-parent
 * @description:
 * @author: xiaoyu.jing
 * @date: 2020-11-06 19:47
 **/
public class CoreRequest12 extends BaseApiRequest {

    private String vchNo;
    private String vchTrType;
    private String preBusDate;
    private String busDate;
    private String vchChannelType;
    private List<TransDetl> transList;

    public String getVchNo() {
        return vchNo;
    }

    public void setVchNo(String vchNo) {
        this.vchNo = vchNo;
    }

    public String getVchTrType() {
        return vchTrType;
    }

    public void setVchTrType(String vchTrType) {
        this.vchTrType = vchTrType;
    }

    public String getPreBusDate() {
        return preBusDate;
    }

    public void setPreBusDate(String preBusDate) {
        this.preBusDate = preBusDate;
    }

    public String getBusDate() {
        return busDate;
    }

    public void setBusDate(String busDate) {
        this.busDate = busDate;
    }

    public String getVchChannelType() {
        return vchChannelType;
    }

    public void setVchChannelType(String vchChannelType) {
        this.vchChannelType = vchChannelType;
    }

    public List<TransDetl> getTransList() {
        return transList;
    }

    public void setTransList(List<TransDetl> transList) {
        this.transList = transList;
    }

    public void addDetl(TransDetl detl){
        if(null == detl){
            return;
        }

        if(CollectionUtils.isEmpty(transList)){
            transList = new ArrayList<>();
        }
        transList.add(detl);
    }

}
